package org.gameg.service.biz;


import org.gameg.bean.Game;
import org.gameg.bean.Player;
import org.gameg.bean.Power;
import org.gameg.model.biz.TGame;
import org.gameg.model.biz.TGamePlayer;

import java.util.List;
import java.util.Map;

/**
 * 所有游戏进行都是通过这个借口来实现的，这个借口的play方法 是游戏开始进行
 */
public interface GameModelMethod {

    /**
     *游戏进行借口，通过游戏计算玩家输赢和玩家输赢后的分数。
     *
     * @return void
     */
    void play(Game game, List<Player> xians, Player zh, TGame tGame, List<TGamePlayer> resultList, boolean isUpdate, boolean isZhFirst, int zhScore,
              List<Player> winXPlayerList, boolean mainTimeout, List<Player> loserXPlayerList, Map<Integer, Power> powers);
}

